[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This is a class that represents a simple mathematical calculator.

You can use it to add, subtract, divide and multiply integers and fractional numbers.

  • Addition
  • Subtraction
  • Division
  • Multiplication

Namespace: Calculator
Assembly: Calculator (Calculator)

Syntax

Visual Basic (Declaration)
Public Class SimpleCalculator
C#
public class SimpleCalculator
C++
public ref class SimpleCalculator

Methods

IconTypeDescription
Add(Int32, Int32)
This method adds two integers.
Divide(Int32, Int32)
This method divides two integers.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetHashCode()
Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
Multiply(Int32, Int32)
This method multiplies two integers.
Subtract(Int32, Int32)
This method subtracts two integers.
ToString()
Returns a String that represents the current Object.

Constructors

IconTypeDescription
SimpleCalculatorNew()

Remarks

This class is developed on .NET 2.0

Inheritance Hierarchy

System.Object
  Calculator.SimpleCalculator